const mongoose = require('../config/db/mongo');
const moment = require('moment');
const Schema = mongoose.Schema;
const schemaOptions = {
        versionKey: false
    }
const chatlistuserSchema = new Schema({
    
    nickname: String,
    gender: Number,
    city : String,
    followerCount : Number,
    uid : String,
    addTime : Date,
    accountUid : String,
    accountName : String,
    updatetime : Date,
    postCount : Number,
    fansCount : Number,
    searched : [],
    firstClickUser : [],
    allClickUser : [],
    isClicked : Number,
    isDelete : Number,
    lastShowDate : Date,
    error : Number

}, schemaOptions);

// methods ====================== 提高数据库检索速度 按顺序
// create the model for users and expose it to our app
module.exports = mongoose.model('chatlistuser', chatlistuserSchema, 'chatlistuser');